<?php
/**
 * Yotaku shop - yshop
 * Copyright (c) 2016 http://www.yotaku.cn All rights reserved.
 * Author: Creatint <creatint@163.com> <http://creatint.yotaku.cn>
 */
namespace Home\Controller;
use Think\Controller;

class ArticleController extends Controller{
    public function detail($id){
        $Article    =   D("Article");
        if($info       =   $Article->getDetail($id)){
            $this->assign('info',$info);
        }else{
            $this->error($Article->getError());
        }

    }
}